﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectProduct.aspx.cs" MasterPageFile="~/MasterPage.master"
    Inherits="WareHouse_SelectProduct" %>

<%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>选择商品</title>
    <link href="../resources/styles/style.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Page-Enter" content="revealTrans(Duration=1.0,Transition=16)" />
    <script type="text/javascript">
        function Return(value) {
            var sData = window.dialogArguments;
            sData.returnValue = value;
            sData.ShowValue();
            window.close();
        }
    </script>
    <base target="_self" /> 

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table id="wsd_inputtable">
        <tr>
            <td class="tabletitle" colspan="6">
                <asp:Literal ID="Literal1" runat="server" Text="<%$ resources:language, lbl_Query_Condition%>"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="tablefield">
                <asp:Literal ID="Literal2" runat="server" Text="<%$ resources:language, lbl_Manufactory%>"></asp:Literal>
            </td>
            <td>
                <asp:DropDownList ID="ddlManu" runat="server" Width="130" AutoPostBack="True" OnSelectedIndexChanged="ddlManu_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td class="tablefield">
                <asp:Literal ID="Literal3" runat="server" Text="<%$ resources:language, lbl_Category%>"></asp:Literal>
            </td>
            <td>
                <asp:DropDownList ID="ddlCategroy" runat="server" Width="130" AutoPostBack="True"
                    OnSelectedIndexChanged="ddlCategroy_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td class="tablefield">
                品牌
            </td>
            <td>
                <asp:DropDownList ID="ddlBrand" runat="server" Width="130">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tablefield">
                <asp:Literal ID="Literal4" runat="server" Text="<%$ resources:language, lbl_Package%>"></asp:Literal>
            </td>
            <td>
                <asp:DropDownList ID="ddlForm" runat="server" Width="130">
                </asp:DropDownList>
            </td>
            <td class="tablefield">
                <asp:Literal ID="Literal6" runat="server" Text="<%$ resources:language, lbl_ProductName%>"></asp:Literal>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtCustomer" class="default" MaxLength="20" Width="130px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tablefield">
            </td>
            <td class="buttonarea" colspan="5">
                &nbsp;<asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="<%$ resources:language, btn_Query%>"
                    OnClick="btnQuery_Click" />
            </td>
        </tr>
    </table>
    <br />
    <table id="wsd_listtable" width="100%">
        <tr>
            <td style="width: 100%">
                <asp:GridView Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False"
                    EmptyDataText="<%$ resources:language, lbl_Empty %>" EmptyDataRowStyle-Font-Bold="true"
                    EmptyDataRowStyle-HorizontalAlign="Center" BorderWidth="0px" OnRowDataBound="Grid_RowDataBound"
                    EnableEmptyContentRender="true" AllowPaging="True" DataKeyNames="ID" OnPageIndexChanging="GridView1_PageIndexChanging"
                   >
                    <HeaderStyle CssClass="titlist" />
                    <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                    <Columns>
                        <asp:BoundField HeaderText="<%$ resources:language, lbl_ProductCode%>" DataField="ProductCode"
                            ControlStyle-Font-Underline="false">
                            <ControlStyle Font-Underline="False"></ControlStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="FORMNAME" HeaderText="系列" />
                        <asp:BoundField HeaderText="<%$ resources:language, lbl_ProductName%>" DataField="ProductName"
                            ControlStyle-Font-Underline="false">
                            <ControlStyle Font-Underline="False"></ControlStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="CASE_PRICE" HeaderText="箱(价)" DataFormatString="{0:N2}" />
                        <asp:BoundField DataField="PIECE_PRICE" HeaderText="支(价)" DataFormatString="{0:N2}" />
                        <asp:BoundField DataField="DENOMINATOR" HeaderText="箱/支" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <input type="button" value="选择" class="wsd_button2" onclick="javascript:Return('<%# Eval("ID") %>');" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:CommandField HeaderText="选择" ShowHeader="True" ItemStyle-CssClass="wsd_button2"
                         
                            ShowSelectButton="True" CausesValidation="False">
                            <ControlStyle CssClass="wsd_button2" />
                            <ItemStyle CssClass="wsd_button2"></ItemStyle>
                        </asp:CommandField>--%>
                    </Columns>
                    <PagerSettings Visible="false" FirstPageText="<%$ resources:language, lbl_First_Page%>"
                        LastPageText="<%$ resources:language, lbl_Last_Page%>" Mode="NumericFirstLast"
                        PageButtonCount="30" />
                    <RowStyle CssClass="evenline" />
                    <AlternatingRowStyle CssClass="oddline" />
                </asp:GridView>
                <uc1:GridPager ID="GridPager1" runat="server" Visible="false" />
            </td>
        </tr>
    </table>
</asp:Content>
